package aidevelopment;

public class ZetRij {

	private int numberOfElements;
	private Zet[] moveOfRowArray;

	public ZetRij(int arrayLengthCoordinate){
		moveOfRowArray = new Zet[arrayLengthCoordinate];
	}

	public void addMoveToMoveRow(Zet move){
		moveOfRowArray[numberOfElements] = move;
		numberOfElements++;
	}

	public void addRowToBack(ZetRij toAdd){
		for(int i = 0; i <= toAdd.length(); i++){
			addMoveToMoveRow(toAdd.moveArray()[i]);
		}	
	}

	public int length(){
		return numberOfElements;
	}

	Zet[] moveArray(){
		return moveOfRowArray;
	}
	
	public Zet specificMove(int i){
		return moveOfRowArray[i];
	}
	
//	Move specificMove(Coordinate c){
//		for(int i = 0; i < numberOfElements; i++){
//			if(moveOfRowArray[i].mainCoordinate().equals(c)){
//				return moveOfRowArray[i];
//			}
//		}
//		return null;
//	}
}